#### MASON tests Makefile

# The location of the jar against which we'll be running the tests
MASON_JAR = ../mason.jar

TEST_CP = ${MASON_JAR}:lib/junit-4.9b3.jar

SRCDIR = src

TEST_FILES = \
${SRCDIR}/sim/util/*.java \

TEST_CLASSES = sim.util.TestBag

# compile the tests
all:
	javac -cp ${TEST_CP} ${TEST_FILES}

test: all
	java -cp ${TEST_CP}:${SRCDIR} org.junit.runner.JUnitCore ${TEST_CLASSES}

# Delete all jmf gunk, checkpoints, backup emacs gunk classfiles,
# documentation, and odd MacOS X poops
clean:
	find . -name "*.class" -exec rm -f {} \;
	find . -name ".DS_Store" -exec rm -f {} \; 
	find . -name "*.java*~" -exec rm -f {} \;
	find . -name ".#*" -exec rm -rf {} \;
